package com.choosefine.it.manager.dao;

import java.util.Map;

import com.choosefine.it.manager.model.ManagerFindprojectInfo;
import com.choosefine.it.team.model.TeamFindProjectInfo;
import com.github.pagehelper.Page;

public interface ManagerFindprojectInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(ManagerFindprojectInfo record);

    ManagerFindprojectInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ManagerFindprojectInfo record);

    /**
     * 软删除某条求项目信息
     * @param params
     * @return
     */
    int updateIsValidByIdFindproject(Map<String, Object> params);
    /**
     * 更新求项目发布状态
     * @param params
     * @return
     */
    int updateStateByIdFindproject(Map<String, Object> params);
    /**
     * 查询该用的发布求项目的信息列表
     * @param params
     * @return
     */
    Page<ManagerFindprojectInfo> selectManagerFindprojectInfoByUserCode(Map<String, Object> params);
    
    /**
	 * 根据发布id查询项目经理求项目信息
	 * @author chenjian
	 */
    ManagerFindprojectInfo selectManagerFindprojectById(Integer publishId);
    
    Page<ManagerFindprojectInfo> selectFindProjectInfoByCondition(Map<String, Object> params);
    
    int updateFindProjectVerifyStatus(Map<String, Object> params);
    
    int deleteFindProject(Map<String, Object> params);
    
}